<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="<%=basePath%>js/jquery.js"></script>
<script type="text/javascript" src="<%=basePath%>js/data/datastorage/dirbrowse.js"></script>
<style type="text/css">
 table{
    width: 500px;
    border-color: chartreuse;
    border-collapse: collapse;
}
table td{
    
}
</style>
</head>
<body>
	<select id="maindir">
		<option selected="selected" value="0">默认数据目录</option>
		<option value="1">主目录(admin/)</option>
		<option value="2">C:</option>
		<option value="3">D:</option>
		<option value="4">E:</option>
	</select>
	<span id="dirspan">
		<span>
			<a id="firstDir" href="<%=basePath%>getDir.do">
				<span>data/</span>
			</a>
		</span>
	</span>
	<div id="dir">
		<div id="dirtable">
			<table>
		        <thead>
		            <tr>
		                <th>文件名称</th>
		                <th>文件最后修改时间</th>
		                <th>文件大小</th>
		            </tr>
		        </thead>
		        <tbody id="J_TbData">
		        </tbody>
		    </table>
		</div>
	</div>
	
</body>
</html>